"""
1.导入模块
2.通过模块提供Process类创建进程对象
3.启动进程
"""
import time
import multiprocessing

def work1():
    for i in range(10):
        print('正在运行  work1...')
        time.sleep(0.5)

if __name__=='__main__':
    # 1.导入模块
    # 2.通过模块提供Process类创建进程对象
    process_obj = multiprocessing.Process(target=work1)
    # 3.启动进程
    process_obj.start()
    print('xxxxx')